#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>

#define TIMEOUT  1*1000 //1s

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);

    virtual void timerEvent(QTimerEvent *event);//超时事件

    ~Widget();

private slots:
    void on_startButton_clicked();

    void on_pushButton_2_clicked();

private:
    Ui::Widget *ui;
    int myTimerId;//我的定时器编号
    int picID;
};
#endif // WIDGET_H
